//
//  MMUtils.h
//  MemeMaker
//
//  Created by Phan Quang Ha on 7/9/13.
//  Copyright (c) 2013 soyo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MMUtils : NSObject

+(id)loadView:(Class)class FromNib:(NSString*)nibName;
+ (void)hideKeyboard:(UIView *)topView;
+ (void)hideKeyboard:(UIView *)topView completion:(void (^)(BOOL finished))completion;
+ (UIColor *) getColorFromImage:(UIImage *)img atX:(CGFloat)x andY:(CGFloat)y;
+ (NSString *)trimString:(NSString*)string;
+ (BOOL)isIPhone5;
+ (void)showAlertView:(NSString *)title andMessage:(NSString *)message;
+ (CGSize)sizeWindowScreen;
+ (NSString *)fileNamePath:(NSString*)filename;
+ (UIImage *)newImageFromResource:(NSString *)filename;

+ (void)showWatingView;
+ (void)showWatingViewWithMessage:(NSString*)message;
+ (void)hideWatingView;
+ (void)hideWatingViewWithMessage:(NSString*)message;
+ (UIView*)getMainView;
+ (void)waitingViewMessageIs:(NSString*)message;

+ (BOOL) checkFirstLaunch;

@end
